package bean;

import java.util.Date;

public class News {
    private  Integer nid;
    private  String title;
    private  String photo;
    private    String  time;
    private String authority;
    private String news_txt;
    private  Integer viewNumber;

    public Integer getNid() {
        return nid;
    }

    public void setNid(Integer nid) {
        this.nid = nid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getAuthority() {
        return authority;
    }

    public void setAuthority(String authority) {
        this.authority = authority;
    }

    public String getNews_txt() {
        return news_txt;
    }

    public void setNews_txt(String news_txt) {
        this.news_txt = news_txt;
    }

    public Integer getViewNumber() {
        return viewNumber;
    }

    public void setViewNumber(Integer viewNumber) {
        this.viewNumber = viewNumber;
    }

    @Override
    public String toString() {
        return "News{" +
                "nid=" + nid +
                ", title='" + title + '\'' +
                ", photo='" + photo + '\'' +
                ", time='" + time + '\'' +
                ", authority='" + authority + '\'' +
                ", news_txt='" + news_txt + '\'' +
                ", viewNumber=" + viewNumber +
                '}';
    }
}
